//
//  readRegisterProtocolViewController.m
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-12-24.
//
//

#import "JddReadLotteryProtocolViewController.h"

@interface JddReadLotteryProtocolViewController ()

@end

@implementation JddReadLotteryProtocolViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
    customLab.backgroundColor = [UIColor clearColor];
    [customLab setText:@"代购合买协议"];
    customLab.textAlignment = NSTextAlignmentCenter;
    [customLab setTextColor:[UIColor whiteColor]];
    customLab.font = [UIFont systemFontOfSize:19];
    self.navigationItem.titleView = customLab;
    
    //self.navigationItem.hidesBackButton = YES;
    
    NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"jddagreement" ofType:@"html"];
    [self.webpath loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];

}
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"DaiGouXieYi"];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [MobClick beginLogPageView:@"DaiGouXieYi"];

    [self setJddTabBarHidden:YES];
    
}
@end
